home *** CD-ROM | disk | FTP | other *** search
- Path: alibaba.kmit.sk!not-for-mail
- From: brano@alibaba (Brano Zahradnik)
- Newsgroups: comp.lang.c++
- Subject: Re: problem with inline
- Date: 18 Jan 1996 12:56:49 +0100
- Organization: Kmit
- Message-ID: <4dlci1$nce@alibaba.kmit.sk>
- References: <821123790snz@jprassoc.demon.co.uk>
- NNTP-Posting-Host: sk2eu.eunet.sk
- X-Newsreader: TIN [version 1.2 PL2]
-
- J Paul Robertson (Paul@jprassoc.demon.co.uk) wrote:
- : Can someone help me out here ?
-
- : I'm getting an error message from the linker when I declare one of my
- : functions as inline.
-
- : The compiler is MSVC 1.52
- : The error message is:
- : MAIN.OBJ(c:\temp\main.cpp) : error L2029:
- : 'public: void __far __pascal vga::blt_screen(void)__far' : unresolved external
-
-
- : Here's a snippet of code:
-
- : MAIN.CPP:
- : #include "vga.h"
- : // ...
- : VGA.wait_for_vsync();
- : VGA.blt_screen();
- : // ...
-
- : VGA.H:
- : class vga
- : {
- : public:
- : // ...
- : void wait_for_vsync(void);
- : void blt_screen(void);
-
- : private:
- : unsigned char far *video_buffer;
- : unsigned char far *double_buffer;
- : };
-
- : VGA.CPP:
- : // ...
- : inline void vga::blt_screen(void)
- : {
- : _fmemcpy( video_buffer, double_buffer, 64000 );
- : }
- : // ...
-
- : Thanks in advance,
- : --
- : Paul Robertson
-
- Compile without optimalization.
-
-